package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.DmcPatrolPointBindMapper;
import com.csun.cmny.provider.model.domain.DmcPatrolPointBind;
import com.csun.cmny.provider.model.vo.patrol.PatrolGreatVo;
import com.csun.cmny.provider.service.DmcPatrolPointBindService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2021/7/22 9:42
 * @Description: 巡更点绑定巡更棒绑定接口实现
 */
@Service
public class DmcPatrolPointBindServiceImpl extends BaseService<DmcPatrolPointBind>
        implements DmcPatrolPointBindService {

    @Resource
    private DmcPatrolPointBindMapper dmcPatrolPointBindMapper;
    /*
     * 巡更点解绑巡更棒
     * */
    @Override
    public Integer pointUntiedPatrol(List<DmcPatrolPointBind> dmcPatrolPointBinds) {

        return dmcPatrolPointBindMapper.pointUntiedPatrol(dmcPatrolPointBinds);
    }

    /**
     * 查询需更棒集合
     *
     * @return  the patrol great vo list.
     */
    @Override
    public List<PatrolGreatVo> queryPatrolGreatList() {

        return dmcPatrolPointBindMapper.queryPatrolGreatList();
    }
    /*
    * 巡更点绑定巡更棒
    * */
    @Override
    public Integer pointBindPatrol(List<DmcPatrolPointBind> dmcPatrolPointBinds) {
        return dmcPatrolPointBindMapper.pointBindPatrol(dmcPatrolPointBinds);
    }

    @Override
    public Integer deleteById(Long pointId) {
        return dmcPatrolPointBindMapper.deleteById(pointId);
    }
}
